/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Timers;

import Interfaz.Display;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferStrategy;

/**
 *
 * @author Jorge
 */
public class TimerPintado implements ActionListener {

    Display game;
    BufferStrategy bufer; //Sobra?

    public TimerPintado(Display game_) {
        game = game_;
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        if (!Display.paused) {
            game.render();
            game.draw();
        }
    }
}
